package com.item.service;

import com.item.dao.NoteDetailMapper;
import com.item.dao.model.NoteDetail;
import com.item.dao.model.NoteDetailExample;
import com.item.daoEx.NoteDetailMapperEx;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoteDetailService {
    @Autowired
    private NoteDetailMapper noteDetailMapper;
    
    @Autowired
    private NoteDetailMapperEx noteDetailMapperEx;

    private static final Logger logger = Logger.getLogger(NoteDetailService.class);

    public int countByExample(NoteDetailExample example) {
        return this.noteDetailMapper.countByExample(example);
    }

    public NoteDetail selectByPrimaryKey(String id) {
        return this.noteDetailMapper.selectByPrimaryKey(id);
    }

    public List<NoteDetail> selectByExample(NoteDetailExample example) {
        return this.noteDetailMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.noteDetailMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(NoteDetail record) {
        return this.noteDetailMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NoteDetail record) {
        return this.noteDetailMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(NoteDetailExample example) {
        return this.noteDetailMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(NoteDetail record, NoteDetailExample example) {
        return this.noteDetailMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(NoteDetail record, NoteDetailExample example) {
        return this.noteDetailMapper.updateByExample(record, example);
    }

    public int insert(NoteDetail record) {
        return this.noteDetailMapper.insert(record);
    }

    public int insertSelective(NoteDetail record) {
        return this.noteDetailMapper.insertSelective(record);
    }
    
    public List<String> selectImgList(Map<?,?> map){
    	return this.noteDetailMapperEx.selectImgList(map);
    }
}